/**
 * Dashboard to show the report
 */
Ext.define('Cps.controller.Dashboard1', {
    extend: 'Ext.app.Controller',
	
	stores: ['AllPositions','Thirds','Employees','Pools','PositionByPortfolios','PositionByClients','PositionByDepositarys','PositionByManagers'],
	models: ['AllPosition','Third','Employee','Pool','PositionByPortfolio','PositionByClient','PositionByDepositary','PositionByManager'],
    views: [
        'Cps.view.dashboard.Dashboard1',
		'Cps.view.dashboard.popup.Criteria',
		'Cps.view.dashboard.popup.Search',
		'Cps.view.dashboard.popup.Search1',
		'Cps.view.dashboard.popup.Search2',
		'Cps.view.dashboard.Zone4'
    ],
    
	refs: [         
         { ref: 'zone4Panel', selector: '#zone4' }
    ],
	
    /**
     * Init the controller
     */
    init: function() {
		this.control({
    		'dashboard1 button[action=criteria]': {
    			click: this.onCriteria
    		}
    	});
    },
    
    onLaunch: function() {
    },
	
	onCriteria: function() {
		var criteria = Ext.widget('Criteria');
		criteria.show();
    }
});